﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MangoMes.Commont.DTOs
{
    /// <summary>
    /// 泛型返回结果DTO
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ResultsDTO<T> where T : class
    {
        /// <summary>
        /// 受影响行数
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 结果说明
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 集合
        /// </summary>
        public List<T> Data { get; set; }
        /// <summary>
        /// 实体
        /// </summary>
        public T Objects { get; set; }
    }
    /// <summary>
    /// 非泛型返回结果DTO
    /// </summary>
    public class ResultsDTO
    {
        /// <summary>
        /// 受影响行数
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 结果说明
        /// </summary>
        public string Message { get; set; }
    }
}
